<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			console.log(location.search);
			//1.去掉? substr("起始位置",截取几个字符)
			var params = location.search.substr(1);
			console.log(params);
			var paramGroup = params.split("=");
			console.log(paramGroup[1]);
		</script>
	</body>
</html>
